package cn.guestbook.model;

import java.util.Date;
import java.util.HashSet;
import java.util.Set;


/**
 * @author Wangzi
 * @email yhjhoo@gmail.com
 *
 */

public class Post implements java.io.Serializable {

	// Fields


	private static final long serialVersionUID = 1L;
	private Integer postId = 0;
	private User user;
	private Post post;
	private String content;
	private Date postDate;
	private Set<Post> posts = new HashSet<Post>(0);

	// Constructors

	/** default constructor */
	public Post() {
	}
	/* full constructor */
	public Post(Integer postId, User user, Post post, String content,
			Date postDate, Set<Post> posts) {
		super();
		this.postId = postId;
		this.user = user;
		this.post = post;
		this.content = content;
		this.postDate = postDate;
		this.posts = posts;
	}

	public Integer getPostId() {
		return this.postId;
	}

	public void setPostId(Integer postId) {
		this.postId = postId;
	}

	public User getUser() {
		return this.user;
	}

	public void setUser(User user) {
		this.user = user;
	}

	public String getContent() {
		return this.content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public Date getPostDate() {
		return this.postDate;
	}

	public void setPostDate(Date postDate) {
		this.postDate = postDate;
	}

	public Post getPost() {
		return post;
	}

	public void setPost(Post post) {
		this.post = post;
	}

	public Set<Post> getPosts() {
		return posts;
	}

	public void setPosts(Set<Post> posts) {
		this.posts = posts;
	}

}